<?php
/**
 * Project: AIGC
 * Author: moufer <moufer@163.com>
 * Date: 2024/7/27 01:36
 */

namespace module\chat\enum;

use module\chat\model\Assistant;
use module\chat\model\Visrole;
use mof\annotation\Description;
use mof\concern\EnumExtend;

enum RoleEnum: string
{
    use EnumExtend;

    #[Description('创作助手')]
    case ASSISTANT = 'assistant';

    #[Description('虚拟角色')]
    case VISROLE = 'visrole';

    public function roleClassName(): string
    {
        return match ($this) {
            self::ASSISTANT => Assistant::class,
            self::VISROLE => Visrole::class
        };
    }
}
